package com.yimi.yinhepda.entity.response;

import com.google.gson.annotations.SerializedName;
import com.j256.ormlite.field.DatabaseField;

import java.util.List;

/**
 * @author 000432
 * @date 2017/4/14 0014
 */

public class DeptInfoResponse {
    private boolean success;

    private DataBeanNew data;

    private String[] errorMessages;
    private int errorCode;

    public String[] getErrorMessages() {
        return errorMessages;
    }

    public void setErrorMessages(String[] errorMessages) {
        this.errorMessages = errorMessages;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public DataBeanNew getData() {
        return data;
    }

    public void setData(DataBeanNew data) {
        this.data = data;
    }

    public static class DataBeanNew {
        int totalSize;
        List<DataBean> records;

        public int getTotalSize() {
            return totalSize;
        }

        public void setTotalSize(int totalSize) {
            this.totalSize = totalSize;
        }

        public List<DeptInfoResponse.DataBean> getRecords() {
            return records;
        }

        public void setRecords(List<DeptInfoResponse.DataBean> records) {
            this.records = records;
        }
    }

    public static class DataBean {

        /**
         * deptBaseInfoId : 6257431268544262000
         * deptCode : 025W
         * deptName : 南京枢纽
         * deptPinyin : nanjingshuniu
         * enableTime : 2017-04-11T05:15:01Z
         * deptType : 5
         * outDeptName : 南京枢纽
         * belongComp : shikong
         * districtCode : 320102
         * status : 1
         * parentGroupCode : 510fb
         * belongCompAccount : shikong
         * isResidentDept : 1
         * isCrossProvince : 1
         * creater : 000000@yimidida
         * createrTime : 2017-04-11T05:17:52Z
         * modifier : 000000@yimidida
         * modifierTime : 2017-04-11T05:17:52Z
         * isDelete : 0
         * latestTime : 2017-04-11T05:16:47Z
         * recordVersion : 0
         * districtTheRegionVo : {"theProvinceCode":320000,"theProvinceName":"江苏省","theCityCode":320100,"theCityName":"南京市","theCountyCode":320102,
         * "theCountyName":"玄武区"}
         */
        /**
         * 主键
         */
        @SerializedName("deptBaseInfoId")
        private long deptBaseInfoId;
        /**
         * 网点编码
         */
        @SerializedName("deptCode")
        private String deptCode;
        /**
         * 网点名称
         */
        @SerializedName("deptName")
        private String deptName;
        /**
         * 名称拼音
         */
        @SerializedName("deptPinyin")
        private String deptPinyin;
        /**
         * 启用日期
         */
        @SerializedName("enableTime")
        private String enableTime;
        /**
         * 网点类型
         */
        @SerializedName("deptType")
        private int deptType;
        /**
         * 对外名称
         */
        @SerializedName("outDeptName")
        private String outDeptName;
        /**
         * 所属企业
         */
        @SerializedName("belongComp")
        private String belongComp;
        /**
         * 行政区域code
         */
        @SerializedName("districtCode")
        private String districtCode;
        /**
         * 网点状态
         */
        @SerializedName("status")
        private int status;
        /**
         * 上级组织
         */
        @SerializedName("parentGroupCode")
        private String parentGroupCode;
        /**
         * 所属账套
         */
        @SerializedName("belongCompAccount")
        private String belongCompAccount;
        /**
         * 是否驻地部门
         */
        @SerializedName("isResidentDept")
        private int isResidentDept;
        /**
         * 是否跨行政省区
         */
        @SerializedName("isCrossProvince")
        private int isCrossProvince;
        /**
         * 创建人
         */
        @SerializedName("creater")
        private String creater;
        /**
         * 创建时间
         */
        @SerializedName("createrTime")
        private String createrTime;
        /**
         * 修改人
         */
        @SerializedName("modifier")
        private String modifier;
        /**
         * 修改时间
         */
        @SerializedName("modifierTime")
        private String modifierTime;
        /**
         * 是否删除 0未删除；1 已删除，默认0
         */
        @SerializedName("isDelete")
        private int isDelete;
        /**
         * 最后修改时间
         */
        @SerializedName("latestTime")
        private String latestTime;
        /**
         * 版本号
         */
        @SerializedName("recordVersion")
        private int recordVersion;
        /**
         * 公司代码
         */
        @SerializedName("compCode")
        private String compCode;
        /**
         * 虚拟网点类型 数据字典key:virtual_node_type
         */
        @SerializedName("column26")
        private String column26;
        /**
         * 所属分拨（编码）
         */
        @SerializedName("belongForward")
        private String belongForward;
        @SerializedName("isOmg")
        private int isOmg;
        /**
         * theProvinceCode : 320000
         * theProvinceName : 江苏省
         * theCityCode : 320100
         * theCityName : 南京市
         * theCountyCode : 320102
         * theCountyName : 玄武区
         */

        private DistrictTheRegionVoBean districtTheRegionVo;

        public long getDeptBaseInfoId() {
            if (deptBaseInfoId == 0) {
                deptBaseInfoId = 0;
            }
            return deptBaseInfoId;
        }

        public int getIsOmg() {
            return isOmg;
        }

        public void setIsOmg(int isOmg) {
            this.isOmg = isOmg;
        }

        public void setDeptBaseInfoId(long deptBaseInfoId) {
            this.deptBaseInfoId = deptBaseInfoId;
        }

        public String getColumn26() {
            return column26;
        }

        public void setColumn26(String column26) {
            this.column26 = column26;
        }

        public String getBelongForward() {
            return belongForward;
        }

        public void setBelongForward(String belongForward) {
            this.belongForward = belongForward;
        }

        public String getDeptCode() {
            return deptCode;
        }

        public void setDeptCode(String deptCode) {
            this.deptCode = deptCode;
        }

        public String getDeptName() {
            return deptName;
        }

        public void setDeptName(String deptName) {
            this.deptName = deptName;
        }

        public String getDeptPinyin() {
            return deptPinyin;
        }

        public void setDeptPinyin(String deptPinyin) {
            this.deptPinyin = deptPinyin;
        }

        public String getEnableTime() {
            return enableTime;
        }

        public void setEnableTime(String enableTime) {
            this.enableTime = enableTime;
        }

        public int getDeptType() {
            if (deptType == 0) {
                deptType = 0;
            }
            return deptType;
        }

        public String getCompCode() {
            return compCode;
        }

        public void setCompCode(String compCode) {
            this.compCode = compCode;
        }

        public void setDeptType(int deptType) {
            this.deptType = deptType;
        }

        public String getOutDeptName() {
            return outDeptName;
        }

        public void setOutDeptName(String outDeptName) {
            this.outDeptName = outDeptName;
        }

        public String getBelongComp() {
            return belongComp;
        }

        public void setBelongComp(String belongComp) {
            this.belongComp = belongComp;
        }

        public String getDistrictCode() {
            return districtCode;
        }

        public void setDistrictCode(String districtCode) {
            this.districtCode = districtCode;
        }

        public int getStatus() {
            if (status == 0) {
                status = 0;
            }
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getParentGroupCode() {
            return parentGroupCode;
        }

        public void setParentGroupCode(String parentGroupCode) {
            this.parentGroupCode = parentGroupCode;
        }

        public String getBelongCompAccount() {
            return belongCompAccount;
        }

        public void setBelongCompAccount(String belongCompAccount) {
            this.belongCompAccount = belongCompAccount;
        }

        public int getIsResidentDept() {
            if (isResidentDept == 0) {
                isResidentDept = 0;
            }
            return isResidentDept;
        }

        public void setIsResidentDept(int isResidentDept) {
            this.isResidentDept = isResidentDept;
        }

        public int getIsCrossProvince() {
            if (isCrossProvince == 0) {
                isCrossProvince = 0;
            }
            return isCrossProvince;
        }

        public void setIsCrossProvince(int isCrossProvince) {
            this.isCrossProvince = isCrossProvince;
        }

        public String getCreater() {
            return creater;
        }

        public void setCreater(String creater) {
            this.creater = creater;
        }

        public String getCreaterTime() {
            return createrTime;
        }

        public void setCreaterTime(String createrTime) {
            this.createrTime = createrTime;
        }

        public String getModifier() {
            return modifier;
        }

        public void setModifier(String modifier) {
            this.modifier = modifier;
        }

        public String getModifierTime() {
            return modifierTime;
        }

        public void setModifierTime(String modifierTime) {
            this.modifierTime = modifierTime;
        }

        public int getIsDelete() {
            return isDelete;
        }

        public void setIsDelete(int isDelete) {
            this.isDelete = isDelete;
        }

        public String getLatestTime() {
            return latestTime;
        }

        public void setLatestTime(String latestTime) {
            this.latestTime = latestTime;
        }

        public int getRecordVersion() {
            return recordVersion;
        }

        public void setRecordVersion(int recordVersion) {
            this.recordVersion = recordVersion;
        }

        public DistrictTheRegionVoBean getDistrictTheRegionVo() {
            return districtTheRegionVo;
        }

        public void setDistrictTheRegionVo(DistrictTheRegionVoBean districtTheRegionVo) {
            this.districtTheRegionVo = districtTheRegionVo;
        }

        public static class DistrictTheRegionVoBean {
            /**
             * 省编号
             */
            private int theProvinceCode;
            /**
             * 省名称
             */
            private String theProvinceName;
            /**
             * 城市编号
             */
            private int theCityCode;
            /**
             * 城市名称
             */
            private String theCityName;
            /**
             * 区编号
             */
            private int theCountyCode;
            /**
             * 区名称
             */
            private String theCountyName;

            public int getTheProvinceCode() {
                if (theProvinceCode == 0) {
                    theProvinceCode = 0;
                }
                return theProvinceCode;
            }

            public void setTheProvinceCode(int theProvinceCode) {
                this.theProvinceCode = theProvinceCode;
            }

            public String getTheProvinceName() {
                return theProvinceName;
            }

            public void setTheProvinceName(String theProvinceName) {
                this.theProvinceName = theProvinceName;
            }

            public int getTheCityCode() {
                if (theCityCode == 0) {
                    theCityCode = 0;
                }
                return theCityCode;
            }

            public void setTheCityCode(int theCityCode) {
                this.theCityCode = theCityCode;
            }

            public String getTheCityName() {
                return theCityName;
            }

            public void setTheCityName(String theCityName) {
                this.theCityName = theCityName;
            }

            public int getTheCountyCode() {
                if (theCountyCode == 0) {
                    theCountyCode = 0;
                }
                return theCountyCode;
            }

            public void setTheCountyCode(int theCountyCode) {
                this.theCountyCode = theCountyCode;
            }

            public String getTheCountyName() {
                return theCountyName;
            }

            public void setTheCountyName(String theCountyName) {
                this.theCountyName = theCountyName;
            }
        }
    }
}
